/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.put.dcs_modeler.visualModelEditor.palette;

import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.lookup.Lookups;

/**
 *
 * @author LukaszR
 */
public class ToolNode extends AbstractNode
{

    private Tool shape;

    /** Creates a new instance of InstrumentNode */
    public ToolNode( Tool key )
    {
        super( Children.LEAF, Lookups.fixed( new Object[]
                {
                    key
                } ) );
        this.shape = key;
        setIconBaseWithExtension( key.getImage() );
    }
}